package lesson02;

import java.io.FileWriter;
import java.io.IOException;
import java.nio.charset.Charset;

public class Demo_205 {

    public static void main(String[] args) throws IOException {
//        System.out.printf("你好");
        FileWriter fileWriter = new FileWriter("d:/temp/world.txt", Charset.defaultCharset());
        fileWriter.write("hello world\n");
        fileWriter.write("你好");
        fileWriter.flush();
        fileWriter.close();
    }
}
